import json
name_work = input("what you name:")
names = 'names.json'
with open(names,'w') as name_list:
    json.dump(names,name_list)
    print("welcome! " + name_work)